import Vue from 'vue'
import Router from 'vue-router'
import BasicMessage from '@/view/BasicMessage'
import StudyRecord from '@/view/StudyRecord'
import TrainFiles from '@/view/TrainFiles'
import WorkExperience from '@/view/WorkExperience'
import WorkerManage from '@/components/WorkerManage'
import Entry from '@/view/Entry'
Vue.use(Router)
export default new Router({
  routes: [
    {path:'/',name: 'Entry',component: Entry,redirect:'/workerManage',
      children:[
      	{path: 'basicMessage',name: 'basicMessage',component: BasicMessage},
		    {path: 'studyRecord',name: 'studyRecord',component: StudyRecord},
		    {path: 'trainFiles',name: 'trainFiles',component: TrainFiles},
		    {path: 'workExperience',name: 'workExperience',component: WorkExperience},
      ]
    },
    {path: '/workerManage',name: 'workerManage',component: WorkerManage},
  ]
})
